package com.jingdun.sport.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdun.sport.activity.SportRecords;
import com.jingdun.sport.bean.model.NewSportRecords;
import com.jingdun.sport.bean.model.SportRecord;
import com.jingdun.sport.dao.NewSportRecordsMapper;
import com.jingdun.sport.service.NewSportRecordsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;


@Service
@Slf4j
public class SportRecordsServiceImpl extends ServiceImpl<NewSportRecordsMapper, NewSportRecords> implements NewSportRecordsService {

    @Autowired
    private NewSportRecordsMapper newSportRecordsMapper;

    @Override
    public List<NewSportRecords> getListByActivityId(Set<Long> ufinishedActivityIdSet) {
        return newSportRecordsMapper.getListByActivityId(ufinishedActivityIdSet);
    }

    @Override
    public NewSportRecords userNewSportProjectBy(Long sportProject, String userId) {
        return newSportRecordsMapper.userNewSportProjectBy(sportProject, userId);
    }
}
